-module(reverl_app).
-behaviour(application).
-export([
	 start/2,
	 stop/1
        ]).

start(Type, StartArgs) ->
    case reverl_sup:start_link() of
	{ok, Pid} -> 
	    alarm_handler:clear_alarm({application_stopped, reverl}),
	    {ok, Pid};
	Error ->
	    alarm_handler:set_alarm({{application_stopped, reverl},[]}),
	    Error
    end.

stop(State) ->
    alarm_handler:set_alarm({{application_stopped, reverl},[]}),
    ok.
